package cn.tedu.douguo.user.service;

import cn.tedu.douguo.user.pojo.param.UserLoginInfoParam;
import cn.tedu.douguo.user.pojo.param.UserRegInfoParam;
import cn.tedu.douguo.user.pojo.vo.UserLoginInfoVO;
import cn.tedu.douguo.user.pojo.vo.UserNavInfoVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface UserService {

    //用户注册
    String register(UserRegInfoParam userRegInfoParam);
    //用户登录
    String login(UserLoginInfoParam userLoginInfoParam);

    UserNavInfoVO getUserInfoById(Long userId);

    void logout(String jwt);
}
